<div class="operateBox">
  <div id="l_toolbar"></div>
  <h2><?php echo $this->title?></h2>
</div>

<table class="ta-h" width="800" id="dataList">
  <tr>
    <th></th>
    <th>名称</th>
    <th>描述</th>
    
    <th>折扣</th>
    <th>需要积分</th>
  </tr>
  <?php foreach($res as $v){?>
  <tr class="sl-i" i_ID="<?php echo $v['id'];?>">
    <td><?php echo $v['id']?></td>
    <td><?php e_h($v['name']);?></td>
    <td><?php e_h($v['note']);?></td>
    
    <td class="txt-a-r"><?php echo $v['discount']?></td>
    <td class="txt-a-r"><?php echo $v['point']?></td>

  </tr>
  <?php }?>
</table>
<?php $this->loadTemplate('paging');?>

<script type="text/javascript">
var c_U = '?u=c<?php e_a(YF_f::$arr['c'])?>', dTA = Table_Ad.init('#dataList',{u_del: c_U+'-fdel&id=', u_view: c_U+'-fpost&id='}).creSelect();
Toolbar.init('#l_toolbar').addBut('new').addBut('del');
</script>